import 'package:fish_redux/fish_redux.dart';
import '../../../app_files.dart';

class EngineerListViewState implements Cloneable<EngineerListViewState> {
  int currentSortIndex = 0;
  List items;
  int currentPage = 1;
  int type = 0;
  EasyRefreshController refreshController = EasyRefreshController();

  @override
  EngineerListViewState clone() {
    return EngineerListViewState()
      ..currentSortIndex = currentSortIndex
      ..items = items
      ..type = type
      ..currentPage = currentPage
      ..refreshController = refreshController;
  }
}

EngineerListViewState initState(Map<String, dynamic> args) {
  return EngineerListViewState()
    ..currentSortIndex = args['sort']
    ..type = args['type'];
}
